<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="app">
        <h2 v-if="score>90">优秀</h2>
        <h2 v-else-if="score>=80">良好</h2>
        <h2 v-else-if="score>=60">及格</h2>
        <h2 v-else="score<60">不及格</h2>

        <h3 v-if="isShow">{{message}}</h3>
    </div>



    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                message: '我是你爹!',
                score: 45,
                isShow: true,
            },
            methods: {}
        });
    </script>
</body>

</html>